<body class="withvernav">
<div class="bodywrapper">
    <div class="centercontent tables">
        <div class="pageheader notab">
            <h1 class="pagetitle">欢迎登录</h1>
            <span class="pagedesc">工作台</span>
            
        </div><!--pageheader-->
        <div id="contentwrapper" class="contentwrapper">
            {{if $newfactoryscan}}
            <div id="updates" class="subcontent">
                <div class="two_third dashboard_left">
                    <div class="widgetbox">
                        <div class="title"><h3>最新工厂扫件</h3></div>
                        <div class="title" style="float:right">
                                <span>
                                    <a href="/factory/scanorder" target="_blank">MORE...</a>
                                </span>
                        </div>
                        <div class="widgetcontent">
                            <table cellpadding="0" cellspacing="0" border="0" class="stdtable stdtablecb overviewtable2">
                                <colgroup>
                                    <col class="con0" />
                                    <col class="con1" />
                                    <col class="con1" />
                                    <col class="con0" />
                                    <col class="con1" />
                                    <col class="con0" />
                                    <col class="con1" />
                                </colgroup>
                                <thead>
                                <tr>
                                    <th class="head0">订单号</th>
                                    <th class="head1">SKU</th>
                                    <th class="head1">类型</th>
                                    <th class="head1">商品名称</th>
                                    <th class="head0">数量</th>
                                    <th class="head0">价格</th>
                                    <th class="head1">工号</th>
                                </tr>
                                </thead>

                                <tbody id="stocklist">
                                {{foreach from=$newfactoryscan item=li key=key}}
                                <tr>
                                    <td>{{$li.order_id}}</td>
                                    <td><a href="/product/productlist?ty=1&other={{$li.goods_sku}}" target="_blank"><font color="red">{{$li.goods_sku}}</font></a></td>
                                    <td>{{$li.specifications}}</td>
                                    <td>{{$li.skuName}}</td>
                                    <td>{{$li.goods_num}}</td>
                                    <td>{{$li.price}}</td>
                                    <td class="center">{{$li.oper}}</td>
                                </tr>
                                {{/foreach}}
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <br />
                    {{/if}}
                    {{if $newproduct}}
                    <div class="widgetbox">
                        <div class="title"><h3>最新新品</h3></div>
                        <div class="title" style="float:right">
                                <span>
                                    <a href="/welcome/ajaxbutton?op=showMoreProduct" target="_blank">MORE...</a>
                                </span>
                        </div>
                        <div class="widgetcontent">
                            <div id="scroll1" class="mousescroll">
                                <ul class="entrylist">
                                    <li>
                                        <div class="entry_wrap" style="min-height: 30px;">
                                            <div class="entry_img"></div>
                                            <div class="entry_content" style="width:30%;margin-left:80px;float:left;">
                                                <h4><a href="" target="_blank"><B></B></a></h4>
                                                <small></small>
                                                <p></p>
                                            </div>
                                            <div style="width:6%;float: right;margin-right:30px;">
                                                <h4>销量</h4>
                                                <p>
                                                </p>
                                            </div>
                                        </div>
                                    </li>
                                    {{foreach from=$newproduct item=li key=key}}
                                    <li>
                                        <div class="entry_wrap" style="min-height: 100px;">
                                            <div class="entry_img"><img src="{{$li.imagesurl}}" alt="" width="58" /></div>
                                            <div class="entry_content" style="width:30%;margin-left:60px;float:left;">
                                                <h4><a href="/product/productlist?ty=1&other={{$li.goods_sku}}" target="_blank" >
                                                        <p style="width:200px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">
                                                            <B>
                                                                {{$li.goods_name}}
                                                            </B>
                                                        </p>
                                                    </a></h4>
                                                <small>[<font color="red">{{$li.goods_sku}}</font>]  {{$li.g_updatetime}}</small>
                                                <p style="width:270px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">
                                                    {{$li.standard}}{{$li.memo}}
                                                </p>
                                            </div>
                                            <div style="width:6%;float: right;margin-right:30px;text-align:center;">
                                                <!--  <h4>销量</h4>-->
                                                <p>
                                                    {{$li.saleNum}}
                                                </p>
                                            </div>
                                        </div>
                                    </li>
                                    {{/foreach}}

                                </ul>
                            </div><!--#scroll1-->
                        </div><!--widgetcontent-->
                    </div><!-- widgetbox -->
                    {{/if}}
                </div><!--two_third dashboard_left -->


                <div class="one_third last dashboard_right">
                    <div class="widgetbox">
                        {{if $listmessagetotal>0}}
                        <br>
                        <div class="title"><h3>接收消息</h3></div>
                        <div class="widgetoptions">
                        </div>
                        <div class="widgetcontent userlistwidget nopadding">
                            <ul>
                                {{foreach from=$listmessage item=li key=key}}
                                <li>
                                    <div class="info" style="color:red;">{{$li.id}}{{$li.message_type}}</div>
                                    <div class="info">
                                        <a href="{{$li.url}}" target="_blank">{{$li.message}}</a> <br />
                                        发送时间：{{$li.instime}}
                                    </div><!--info-->
                                </li>
                                {{/foreach}}
                            </ul>
                            {{if $listmessagetotal>10}}
                            <a class="more" href="/welcome/ajaxbutton?op=showMoreMessage" target="_blank" style="clear:both">View More</a>
                            {{/if}}
                            <div style="clear:both"></div>
                        </div><!--widgetcontent-->
                        {{/if}}
                    </div>


                    <!--widgetbox-->

                </div><!--one_third last-->


            </div><!-- #updates -->


        </div><!--contentwrapper-->

        <br clear="all" />

    </div><!-- centercontent -->


</div><!--bodywrapper-->
</body>
